﻿using RxxApi.Model.RootTkey;
using SqlSugar;

namespace RxxApi.Model.Entity;

/// <summary>
/// 用户信息表
/// </summary>
[SugarTable("SysUser", "用户表")] //('数据库表名'，'数据库表备注')
public class SysUser : RootEntity
{
    public SysUser()
    {
    }

    public SysUser(string loginName, string loginPWD)
    {
        LoginName = loginName;
        LoginPWD = loginPWD;
    }

    /// <summary>
    /// 登录账号
    /// </summary>
    [SugarColumn(Length = 200, IsNullable = false, ColumnDescription = "登录账号")]  
    public string LoginName { get; set; }

    /// <summary>
    /// 登录密码
    /// </summary>
    [SugarColumn(Length = 200, IsNullable = false)]
    public string LoginPWD { get; set; }
}
